package org.dtrd.modules.evaluation.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.evaluation.entity.po.DtrdEntRdEvaluation;

/**
 * @author qr
 * @date 2021/11/9 7:15 PM
 */
@ApiModel("量表信息对象")
@Getter
@Setter
public class EvaluationInfo {

    private Integer dataId;

    @ApiModelProperty("量表名称")
    private String evaluationName;

    @ApiModelProperty("量表介绍")
    private String intro;

    @ApiModelProperty("答题时间")
    private Integer quizTime;

    @ApiModelProperty("某个患者的填写数量")
    private Integer count;

    @ApiModelProperty("跳转路由")
    private String path;

    public EvaluationInfo parseFromPo(DtrdEntRdEvaluation po){
        dataId = po.getDataId();
        evaluationName = po.getEvaluationName();
        intro = po.getIntro();
        quizTime = po.getQuizTime();
        path = po.getPath();
        return this;
    }
}
